package com.hoho;

import com.hoho.service.UserService;
import com.hoho.spring.ComponentScan;
import com.hoho.spring.HoHoApplicationContext;

@ComponentScan("com.hoho.service")
public class AppConfig {

    public static void main(String[] args) {
        HoHoApplicationContext hoHoApplicationContext = new HoHoApplicationContext(AppConfig.class);
        UserService userService = (UserService)hoHoApplicationContext.getBean("userService");
        userService.test();
    }
}
